package com.github.livebase.util;

import android.util.Base64;

import java.nio.charset.StandardCharsets;

/**
 * @ClassName DecryptUtil
 * @description:
 * @author: biao532
 * @create: 2024-02-17 15:38
 * @Version 1.0
 **/
public class DecryptUtil {
    public static byte[] base64(byte[] bs) {
        return Base64.decode(bs, Base64.DEFAULT);
    }

    public static byte[] base64Str(String str) {
        return Base64.decode(str.getBytes(StandardCharsets.UTF_8), Base64.DEFAULT);
    }
}
